package com.ht.WeNas.data.dto;

import lombok.Data;

import java.nio.file.Path;
import java.nio.file.attribute.BasicFileAttributes;

@Data
public class BasicFileObj {
    Path path;
    BasicFileAttributes attrs;
    
    private BasicFileObj() {}
    
    public static BasicFileObj getInstance(Path path, BasicFileAttributes attrs) {
        if (path == null || attrs == null) {
            return null;
        }
        BasicFileObj obj = new BasicFileObj();
        obj.path = path;
        obj.attrs = attrs;
        return obj;
    }
}
